package com.shensi.appCollect.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shensi.appCollect.enums.OrderStatus;
import com.shensi.appCollect.pojo.SaleActivityOrder;
import org.apache.ibatis.annotations.Param;

/**
 * @date 2023/12/21
 */
public interface SaleActivityOrderMapper extends BaseMapper<SaleActivityOrder> {

    Integer queryUserBoughtNum(@Param("activityId") Long activityId, @Param("userId") Integer userId, @Param("orderStatus") OrderStatus orderStatus);

    Integer queryUserBoughtCount(@Param("activityId") Long activityId, @Param("userId") Integer userId, @Param("orderStatus") OrderStatus orderStatus);

}
